//
//  CYMEHelpWebVC.m
//  CreditAddressBook
//
//  Created by Mosu&Cuu on 16/6/20.
//  Copyright © 2016年 Lee. All rights reserved.
//

#import "CYMEHelpWebVC.h"


@interface CYMEHelpWebVC ()<UIWebViewDelegate>
@property (nonatomic, strong) UIWebView *webview;


@end

@implementation CYMEHelpWebVC

- (void)viewDidLoad {
    [super viewDidLoad];
     
     self.navigationController.interactivePopGestureRecognizer.enabled = NO;
     //[self.navigationBar setBackgroundColor:[UIColor blackColor]];
     _webview = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, [[UIScreen mainScreen ]bounds].size.width,[[UIScreen mainScreen ]bounds].size.height)];
     _webview.delegate = self;
          NSString *url= [NSString stringWithFormat:@"http://www.credit-manage.com/app/help/help.html"];
          NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:url]];
          [_webview loadRequest:request];
     [self.view addSubview:_webview];
     
     [self setupNavigationView];
    // Do any additional setup after loading the view from its nib.
}

- (void)setupNavigationView {
     
     UIView *naviView = [[UIView alloc] init];
     naviView.backgroundColor = CYNaviThemeColor;
     naviView.frame = CGRectMake(0, 0, self.view.width, 64);
     [self.view addSubview:naviView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
